{include file="$usertemplate/header.tpl.html" title=header} 
            <div class="content">
                <div class="leftCont">
                    <div class="boxpro">
                        <div class="tt-boxpro-1">
                            <ul>
                                {if $patParentItems} 
                                {foreach from=$patParentItems key=i item=patParentItem}
                                    {if $i == 0}
                                    <li class="tt-left-1" style="float:left; width:auto; background:none;">
                                        <a href="{$patParentItem->getUrl('vn')}" style="padding-left:50px;">
                                            {$patParentItem->getName($lang)}
                                        </a>
                                    </li>
                                    {else}
                                        <li class="tt-left-1">
                                            <a href="{$patParentItem->getUrl('vn')}">
                                                {$patParentItem->getName($lang)}
                                            </a>
                                        </li>
                                    {/if}
                                {/foreach}
                                {/if}
                            </ul>
                        </div><!--tt-boxpro-->
                        {if $proItems}
                        <div class="cc-boxpro">
                            {foreach from=$proItems item=item}
                            {assign var=price value=$item->getPrice()}
                            {assign var=sprice value=$item->getSPrice()}
                            {assign var=percent value=$sprice*100*-1/$price+100|round:1 }
                            <div class="boxsp">
                                {if $price > $sprice}
                                <div class="sale"><p>{$percent}%</p></div>
                                {/if}
                                <ul>
                                    <li class="pic">
                                        <div class="pic-1">
                                            <table cellspacing="0" cellpadding="0" width="100%">
                                                <tbody>
                                                    <tr>
                                                        <td class="pic_1">
                                                            <a href="{$item->getViewUrl()}">
                                                                <img src="{$ROOTPATH}/gallery/avatar_upload/products/avatar/{$item->getAvatar()}" alt="" />
                                                            </a>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </li>
                                    <li class="tit">
                                        <a href="{$item->getViewUrl()}">{$item->getName($lang)}</a>
                                    </li>
                                    {if $item->getSPrice() < $item->getPrice()}
                                    <li class="gic"><p>Giá: {$item->getPrice()|number_format:0:",":"."} vnđ</p></li>
                                    <li class="gim"><p>Giá: {$item->getSPrice()|number_format:0:",":"."} vnđ</p></li>
                                    {else}
                                    <li class="gim"><p>Giá: {$item->getPrice()|number_format:0:",":"."} vnđ</p></li>
                                    {/if}
                                    <li class="nut">
                                        <ul>
                                            <li class="mua">
                                                <form class="shopping" name="{$item->getId()}" action="" method="post">
                                                    <input type="hidden" name="op" value="shopping" />
                                                    <input type="hidden" name="id" value="{$item->getId()}" />
                                                    <input type="hidden" name="slug" value="{$item->getSlug()}" />
                                                    <input type="hidden" name="plus" value="addToCart" />
                                                    <input type="hidden" name="lang" value="{$lang}" /> 
                                                    <a href="javascript:;" onclick="$(this).parents('form').submit();">Mua</a>
                                                </form>
                                            </li>
                                            <li class="chi"><a href="{$item->getViewUrl()}">Chi tiết</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div><!--boxsp-->
                            {/foreach}
                            {if $pages>1}
                            <br class="clear" />
                            <div class="paging">
                                {$pager}
                            </div>
                            {/if}
                        </div><!--cc-boxpro-->
                        {else}
                        <div class="cc-boxpro">
                            <p class="noproduct">Không có sản phẩm khuyến mãi nào</p>
                        </div>
                        {/if}
                    </div><!--boxpro-->
                </div><!--leftCont-->
                <!--rightCont-->
             {include file="$usertemplate/right.tpl.html" title=right}  
            </div><!--content-->
{include file="$usertemplate/footer.tpl.html" title=footer} 